package com.ruoyi.project.datamanage.service.impl;

import com.ruoyi.project.datamanage.domain.DrugStatistics;
import com.ruoyi.project.datamanage.mapper.DrugMapper;
import com.ruoyi.project.datamanage.service.DrugService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class DrugServiceImpl implements DrugService {
    @Autowired
    private DrugMapper drugMapper;

    @Override
    public List<DrugStatistics> selectDrug(DrugStatistics drugStatistics) {

        return drugMapper.getDrugSell(drugStatistics);

    }

    @Override
    public List<DrugStatistics> selectDrugsell(DrugStatistics drugStatistics) {

        return drugMapper.selectDrugSell(drugStatistics);
    }
}
